package com.logwire.controller;import com.logwire.domain.BaseAreaChina;import com.logwire.dto.ApiResult;import com.logwire.service.BaseAreaChinaService;import io.swagger.v3.oas.annotations.tags.Tag;import org.springframework.beans.factory.annotation.Autowired;import org.springframework.web.bind.annotation.GetMapping;import org.springframework.web.bind.annotation.PathVariable;import org.springframework.web.bind.annotation.RequestMapping;import org.springframework.web.bind.annotation.RestController;import java.util.List;/** * 中国行政划分 */@Tag(name = "中国行政划分")@RestController@RequestMapping("/base/area")public class BaseAreaChinaController {	@Autowired	private BaseAreaChinaService baseAreaChinaService;	@GetMapping("/{parentId}")	public ApiResult<List<BaseAreaChina>> getChildrenArea(@PathVariable("parentId") Long parentId) {		return ApiResult.success(baseAreaChinaService.getByParentId(parentId));	}}